package cn.mingfancloud.bilibili_java.javabase.ClassesAndObjects.Staticday2;

import java.util.ArrayList;

public class Studentday2Util {

    private  Studentday2Util(){}

    public static int getMaxAgeStudent(ArrayList<Studentday2> list) {
        int max = list.get(0).getAge();
        for (int i = 0; i < list.size(); i++) {
            if (list.get(i).getAge() > max) {
                max = list.get(i).getAge();

            }
            
        }
        return max;
    }

}
